import request from '@/utils/request'

// 查询服务器下软件列表
export function listServerSoftware(query) {
  return request({
    url: '/mis/serverSoftware/list',
    method: 'get',
    params: query
  })
}

// 查询服务器下软件详细
export function getServerSoftware(id) {
  return request({
    url: '/mis/serverSoftware/' + id,
    method: 'get'
  })
}

// 新增服务器下软件
export function addServerSoftware(data) {
  return request({
    url: '/mis/serverSoftware',
    method: 'post',
    data: data
  })
}

// 修改服务器下软件
export function updateServerSoftware(data) {
  return request({
    url: '/mis/serverSoftware',
    method: 'put',
    data: data
  })
}

// 删除服务器下软件
export function delServerSoftware(id) {
  return request({
    url: '/mis/serverSoftware/' + id,
    method: 'delete'
  })
}
